<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="org.jeecgframework.core.util.SysThemesUtil,org.jeecgframework.core.enums.SysThemesEnum"%>
<%
// 	String lang = org.jeecgframework.core.util.BrowserUtils.getBrowserLanguage(request);
// 	String langurl = "plug-in/mutiLang/" + lang + ".js";
	SysThemesEnum sysTheme = SysThemesUtil.getSysTheme(request);
	String lhgdialogTheme = SysThemesUtil.getLhgdialogTheme(sysTheme);
	
	String param_sta=request.getParameter("options"); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<%@ taglib prefix="t" uri="/easyui-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js" /></script>
<script type="text/javascript" src="js/zDrag.js"></script>
<script type="text/javascript" src="js/zDialog.js"></script>

<t:base type="DatePicker"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js" /></script>
<script src="webpage/jeecg/image/ajaxfileupload.js"></script>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/shezhi.css">
<title>用户信息</title>
</head>
<!--头部 -->
<%@include file="head.jsp"%>
<%
	String url_param="Integral";	
%>

<!-- ##############################  功能基本可以用，修改页面、不要修改我的代码   ############################################# -->
<!--main -->
<div class="shezhi">
 <div class="shezhi_c">
  <div class="shezhi_c_top"><img src="imges/home.png"> > 设置 > 积分</div>
   <div class="shezhi_con">
     <table style="width:100%; table-layout:fixed;" cellpadding="0" cellspacing="0">
       <tbody>
         <tr>
          <td style=" border-right:1px solid #f1f1f1; width:200px;vertical-align: top;">
		    <%@include file="setLeftNaviLists.jsp"%>
      	</td>
      <% if("cz".equals(param_sta)){ %>
<!--################################# 充值   #################################-->
       <td style="vertical-align: top;">
		     <div class="shezhi_con_r">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
			           <li><a style="color:#666" href="javascript:onChangePage('wdjf');" >我的积分</a><br>  </li>
			           <li><a href="javascript:onChangePage('cz');" style="color:#000">充值</a><br><img src="imges/jiayuan/jiantou.png"> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('zz');">转账</a><br></li>
			           <li><a style="color:#666" href="javascript:onChangePage('dh');">兑换</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfjl');">积分记录</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfgz');">积分规则</a><br> </li>
		           </ul>
		         </div>
		       </div>
		       <div class="shezhi_con_rc">
		         <div class="chongzhi">
		              <div class="chongzhi1">
		                <ul>
		                  <li>经验 : ${myUser.experience} 点</li>
		                  <li>威望 : ${myUser.prestige} 点</li>
		                  <li>易币 : ${myUser.lunbi} 点</li>
		                  <li>魅力 : ${myUser.charm} 点</li>
		                </ul>
		              </div>
		              <div class="chongzhi1">
		                <ul>
		                  <li>贡献 : ${myUser.contrbute} 点</li>
		                  <li>功勋 : 0 点</li>
		                  <li style="margin-left:-27px;"><img src="imges/shezhi/jindou.png" style=" vertical-align:sub"> 金豆 : ${myUser.jindou} 枚</li>
		                  <li><img src="imges/shezhi/jinbi.png" style=" vertical-align:sub"> 现金 : ${myUser.cash} 元</li>
		                </ul>
		              </div>
		            <div style="clear:both"></div>
		         </div>
		         
		         <div class="chongzhi_c">
		           <div class="chongzhi_cl">
		                <span style=" display:inline-block; margin-right:60px">充值</span>
		                <input type="text" class="chongzhi_cl_inp">
		                <span>易币  所需人发币 <span style=" color:#0090ee">0</span> 元</span>
		           </div>
		            <div class="chongzhi_cr">
		                 <span>人民币现金 1 元= 1 元易币</span><br>
		                 <span>单次最低充值 20 元易币</span><br>
		                 <span>单次最高充值 20000 元易币</span>
		            </div>
		         </div>       
		         
		         <div class="chongzhi_c">
		           <div class="chongzhi_cc1"><img src="imges/shezhi/zhifubao.png"></div>
		           <div class="chongzhi_cc2"><img src="imges/shezhi/weixin.png"></div>
		         </div>
		         
		         <div class="shezhi_con_rc3">
		             <button class="shezhi_con_rc3_button" type="button">充值</button>
		         </div> 
		            
		       </div>
		     
		     </div>
		     
		   </td>
	<%}else if("zz".equals(param_sta)){ %>
	<!--################################# 转账   #################################-->
		<td style="vertical-align: top;">
		     <div class="shezhi_con_r">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
			           <li><a style="color:#666" href="javascript:onChangePage('wdjf');">我的积分</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('cz');">充值</a><br></li>
			           <li><a href="javascript:onChangePage('zz');"  style="color:#000">转账</a><br><img src="imges/jiayuan/jiantou.png"> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('dh');">兑换</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfjl');">积分记录</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfgz');">积分规则</a><br> </li>
		           </ul>
		         </div>
		       </div>
		       <div class="shezhi_con_rc">
		         <div class="chongzhi">
		              <div class="chongzhi1">
		                <ul>
		                  <li>经验 : ${myUser.experience} 点</li>
		                  <li>威望 : ${myUser.prestige} 点</li>
		                  <li>易币 : ${myUser.lunbi} 点</li>
		                  <li>魅力 : ${myUser.charm} 点</li>
		                </ul>
		              </div>
		              <div class="chongzhi1">
		                <ul>
		                  <li>贡献 : ${myUser.contrbute} 点</li>
		                  <li>功勋 : 0 点</li>
		                  <li style="margin-left:-27px;"><img src="imges/shezhi/jindou.png" style=" vertical-align:sub"> 金豆 : ${myUser.jindou} 枚</li>
		                  <li><img src="imges/shezhi/jinbi.png" style=" vertical-align:sub"> 现金 : ${myUser.cash} 元</li>
		                </ul>
		              </div>
		            <div style="clear:both"></div>
		         </div>
		         <form name="zzForm" id="zzForm" action="" method="post">
			         <div class="jifen_duihuan" style=" margin-top:10px">
			           <div class="jifen_duihuan1">
			               <span style="display: inline-block;width:80px;text-align: right">转账 ：</span>
			               <input id="yb" name="yb" class="jifen_duihuan_inp" style="width:90px; color:#666" value="0">
			               <span> 易币 </span> 
			               <span>给</span>
			               <input id="ru" name="ru" class="jifen_duihuan_inp" style="width:170px;color:#d3d3d3" placeholder="请输入会员ID">     
			           </div>
			           
			           <div class="jifen_duihuan3">
			             <span>转账后最低金额10元，积分交易税</span> <span style="color:#0090ee"> 30.00%</span>
			           </div>
			           
			            <div class="jifen_duihuan2">
			            <span style="display: inline-block;width:90px;text-align: right;margin-left:-10px;">安全手机号 ：</span> 
			            <input class="jifen_duihuan_inp3"> 
			            </div>
			            
			            <div class="jifen_duihuan2">
			            <span style="display: inline-block;width:90px;text-align: right;margin-left:-10px;">短信验证码 ：</span> 
			            <input class="jifen_duihuan_inp3" style="width:100px;">
			            <button class="jifen_duihuan2_btn">获取验证码</button> 
			           </div>
			            
			            <div class="jifen_duihuan2">
			            <span style="display: inline-block;width:80px;text-align: right">登录密码 ：</span> 
			            <input id="pw" name="pw" class="jifen_duihuan_inp3" type="password"> 
			           </div>
			         
			           <div class="jifen_duihuan2">
			            <span style="display: inline-block;width:80px;text-align: right">转账留言 ：</span> 
			            <input id="zzly" name="zzly" class="jifen_duihuan_inp3"> 
			           </div>			           
			         </div>
			              
		         	<div class="shezhi_con_rc3" style="width:48%"><button class="shezhi_con_rc3_button" type="button" onclick="myZz()">转账</button></div> 
		        </form>    
		       </div>
		      </div>
		       
		   </td>
	<%}else if("dh".equals(param_sta)){ %>
	<!--################################# 兑换   #################################-->
		<td style="vertical-align: top;">
			<div class="shezhi_con_r">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
		           	   <li><a style="color:#666" href="javascript:onChangePage('wdjf');">我的积分</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('cz');">充值</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('zz');">转账</a><br></li>
			           <li><a href="javascript:onChangePage('dh');"  style="color:#000">兑换</a><br><img src="imges/jiayuan/jiantou.png"> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfjl');">积分记录</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfgz');">积分规则</a><br> </li>
		           </ul>
		         </div>
		       </div>
		       <div class="shezhi_con_rc">
		         <div class="chongzhi">
		              <div class="chongzhi1">
		                <ul>
		                  <li>经验 : ${myUser.experience} 点</li>
		                  <li>威望 : ${myUser.prestige} 点</li>
		                  <li>易币 : ${myUser.lunbi} 点</li>
		                  <li>魅力 : ${myUser.charm} 点</li>
		                </ul>
		              </div>
		              <div class="chongzhi1">
		                <ul>
		                  <li>贡献 : ${myUser.contrbute} 点</li>
		                  <li>功勋 : 0 点</li>
		                  <li style="margin-left:-27px;"><img src="imges/shezhi/jindou.png" style=" vertical-align:sub"> 金豆 : ${myUser.jindou} 枚</li>
		                  <li><img src="imges/shezhi/jinbi.png" style=" vertical-align:sub"> 现金 : ${myUser.cash} 元</li>
		                </ul>
		              </div>
		            <div style="clear:both"></div>
		         </div>
		         <form name="dhForm" id="dhForm" action="" method="post">
			         <div class="jifen_duihuan">
			           <div class="jifen_duihuan1">
			               <span style="display: inline-block;width:80px;text-align: right">兑换 ：</span>
			               <input id="dh1" name="dh1" class="jifen_duihuan_inp" value="0" onKeyUp="setNum(this.id)">
			               <select id="slc1" name="slc1" class="jifen_duihuan_inp1">
			               		<option value="lunbi"> 易币 </option>
			               		<option value="jindou"> 金豆 </option>
			               		<option value="cash"> 现金 </option>
			               </select>
			               <span>所需</span>
			               <input id="dh2" name="dh2" class="jifen_duihuan_inp" readonly="readonly">
			               <select id="slc2" name="slc2" class="jifen_duihuan_inp1">
			               		<option value="cash"> 现金 </option>
			               		<option value="lunbi"> 易币 </option>
			               </select>
			           </div>
			           
			           <div class="jifen_duihuan3"><span>转账后最低金额10元，积分交易税</span> <span style="color:#0090ee"> 30.00%</span></div>    
			           <div class="jifen_duihuan2">
			            <span style="display: inline-block;width:80px;text-align: right">登录密码 ：</span> 
			            <input id="dhpw" name="dhpw" class="jifen_duihuan_inp3" type="password"> 
			           </div>
			         </div>     
		         	 <div class="shezhi_con_rc3" style="width:48%"><button class="shezhi_con_rc3_button" type="button" onclick="myDh()">兑换</button></div>
		         </form>     
		       </div>	  
		   </div>
	    </td>
	<%}else if("jfjl".equals(param_sta)){ %>
	<!--################################# 积分记录   #################################-->
		<td style="vertical-align: top;">
			<div class="shezhi_con_r">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
			           <li><a style="color:#666" href="javascript:onChangePage('wdjf');">我的积分</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('cz');">充值</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('zz');">转账</a><br></li>
			           <li><a style="color:#666" href="javascript:onChangePage('dh');">兑换</a><br> </li>
			           <li><a href="javascript:onChangePage('jfjl');"  style="color:#000">积分记录</a><br><img src="imges/jiayuan/jiantou.png"> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfgz');">积分规则</a><br> </li>
		           </ul>
		         </div>
		       </div>
		       
		       <form id="form_jfjl" name="form_jfjl" action="?Integral&options=jfjl" method="post">
				       <div class="shezhi_con_rc" style=" height:200px">
				         <div class="jifen_jilu" style="margin-top:20px;">
				          <div class="jifen_jilu_l">
				            <span>积分：</span>
				            <select id="jflx" name="jflx" class="jifen_jilu_select">
				            	<option value="">不限</option>
				            	<option value="jy">经验</option>
				            	<option value="ww">威望</option>
				            	<option value="yb">易币</option>
				            	<option value="ml">魅力</option>
				            	<option value="gx">贡献</option>
				            	<option value="gxun">功勋</option>
				            	<option value="jd">金豆</option>
				            	<option value="xj">现金</option>		            	
				            </select>
				          </div>
				           <div class="jifen_jilu_r"> 
				            <span>时间范围：<input id="sj1" name="sj1" class="jifen_jilu_inp" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></span> 至 ：<input id="sj2" name="sj2" class="jifen_jilu_inp" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
				           </div>    
				         </div> 
				         <div class="jifen_jilu">
				           <div class="jifen_jilu_l">
				         		<span>收支：</span>
					         	<select id="sz" name="sz" class="jifen_jilu_select">
					         		<option value="">不限</option>
					         		<option value="sr">收入</option>
					         		<option value="zc">支出</option>
					         	</select>
				           </div>
				          <div class="jifen_jilu_r" style="margin-right: 10px">
				           		<span>操作：</span>
				           		<select id="jfcz" name="jfcz" class="jifen_jilu_select">
				           			<option value="">不限</option>
				           			<option value="rwjl">任务奖励</option>
				           			<option value="xszt">悬赏主题</option>
				           			<option value="zjda">最佳答案</option>
				           			<option value="djsjxz">道具随机选择</option>
				           			<option value="gmdj">购买道具</option>
				           			<option value="zzzc">转账转出</option>
				           			<option value="zzjs">转账接收</option>
				           			<option value="jfdh">积分兑换</option>
				           			<option value="jfdhzc">积分兑换支出</option>
				           			<option value="csfj">出售附件</option>
				           			<option value="gmfj">购买附件</option>
				           			<option value="tzbpf">帖子被评分</option>
				           			<option value="tzpf">帖子评分</option>
				           			<option value="cszt">出售主题</option>
				           			<option value="gmzt">购买主题</option>
				           			<option value="gmjf">购买积分</option>
				           			<option value="gmtzyhz">购买拓展用户组</option>
				           			<option value="jbjc">举报奖惩</option>
				           			<option value="cyhd">参与活动</option>
				           			<option value="htjl">回帖奖励</option>
				           			<option value="htzj">回帖中奖</option>
				           			<option value="fhhtjljf">返还回帖奖励积分</option>
				           			<option value="kmcz">卡密充值</option>
				           			<option value="hshb">回收红包</option>
				           			<option value="mxhb">埋下红包</option>
				           			<option value="hdhb">获得红包</option>
				           			<option value="jjpm">竞价排名</option>
				           			<option value="gmxz">购买勋章</option>
				           			<option value="htjfjc">后台积分奖惩</option>		           			
				           		</select>
				          </div>
				         </div>
				
				         <div class="jifen_jilu_btn">
				             <button class="shezhi_con_rc3_button" type="button" onclick="fcJfjl()">查询</button>
				         </div>
				        <div style="clear:both"></div>
				       </div>
		    </form>
		    
		    <div style="background:#f1f1f1; width:100%; height:1px"></div>
		    <div class="jifen3"><span>积分记录</span></div>
		    <div class="jifen4">
		      <div class="jifen41">
		          <div class="jifen41_1"><input type="checkbox" style=" float:left; margin-top:10px" onclick="checkAll1(this)"> 操作</div>
		          <div class="jifen41_1">积分变更</div> 
		          <div class="jifen41_2">详情 </div>
		          <div class="jifen41_2">变更时间</div> 
		      </div>
		    </div>
		    
		    
		    <!-- #### 批量删除  ### -->
		    <form id="form_del1" name="form_del1" action="?Integral&options=jfjl" method="post">
		    	<div id="box1">
			    	<c:forEach items="${JfjlList}" var="item">
				    	<div class="jifen41" style=" margin-top:15px">
					         <div class="jifen41_1"><input id="ckb" name="ckb" type="checkbox" style=" float:left; margin-top:10px" value="${item.id}">
					         	<c:if test="${item.addType == 'rwjl'}">任务奖励</c:if>
					         	<c:if test="${item.addType == 'xszt'}">悬赏主题</c:if>
					         	<c:if test="${item.addType == 'zjda'}">最佳答案</c:if>
					         	<c:if test="${item.addType == 'djsjxz'}">道具随机选择</c:if>
					         	<c:if test="${item.addType == 'gmdj'}">购买道具</c:if>
					         	<c:if test="${item.addType == 'zzzc'}">转账转出</c:if>
					         	<c:if test="${item.addType == 'zzjs'}">转账接收</c:if>
					         	<c:if test="${item.addType == 'jfdh'}">积分兑换</c:if>
					         	<c:if test="${item.addType == 'jfdhzc'}">积分兑换支出</c:if>
					         	<c:if test="${item.addType == 'csfj'}">出售附件</c:if>
					         	<c:if test="${item.addType == 'gmfj'}">购买附件</c:if>
					         	<c:if test="${item.addType == 'tzbpf'}">帖子被评分</c:if>
					         	<c:if test="${item.addType == 'tzpf'}">帖子评分</c:if>
					         	<c:if test="${item.addType == 'cszt'}">出售主题</c:if>
					         	<c:if test="${item.addType == 'gmzt'}">购买主题</c:if>
					         	<c:if test="${item.addType == 'gmjf'}">购买积分</c:if>
					         	<c:if test="${item.addType == 'gmtzyhz'}">购买拓展用户组</c:if>
					         	<c:if test="${item.addType == 'jbjc'}">举报奖惩</c:if>
					         	<c:if test="${item.addType == 'cyhd'}">参与活动</c:if>
					         	<c:if test="${item.addType == 'htjl'}">回帖奖励</c:if>
					         	<c:if test="${item.addType == 'htzj'}">回帖中奖</c:if>
					         	<c:if test="${item.addType == 'fhhtjljf'}">返还回帖奖励积分</c:if>
					         	<c:if test="${item.addType == 'kmcz'}">卡密充值</c:if>
					         	<c:if test="${item.addType == 'hshb'}">回收红包</c:if>
					         	<c:if test="${item.addType == 'mxhb'}">埋下红包</c:if>
					         	<c:if test="${item.addType == 'hdhb'}">获得红包</c:if>
					         	<c:if test="${item.addType == 'jjpm'}">竞价排名</c:if>
					         	<c:if test="${item.addType == 'gmxz'}">购买勋章</c:if>
					         	<c:if test="${item.addType == 'htjfjc'}">后台积分奖惩</c:if>
					         </div>
					          <div class="jifen41_1"><span class="jiefen4_orange">${item.integral} </span></div> 
					          <div class="jifen41_2">
					          		<c:if test="${item.integralType == 'jy'}">经验</c:if>
					          		<c:if test="${item.integralType == 'ww'}">威望</c:if>
					          		<c:if test="${item.integralType == 'yb'}">易币</c:if>
					          		<c:if test="${item.integralType == 'ml'}">魅力</c:if>
					          		<c:if test="${item.integralType == 'gx'}">贡献</c:if>
					          		<c:if test="${item.integralType == 'gxun'}">功勋</c:if>
					          		<c:if test="${item.integralType == 'jd'}">金豆</c:if>
					          		<c:if test="${item.integralType == 'xj'}">现金</c:if>
					          </div>
					          <div class="jifen41_2">${item.addDate}</div> 
					    </div>
					    <div style=" height:1px; background:#f1f1f1; border:none; width:734px; margin:0 auto; margin-top:20px;"></div> 
				    </c:forEach>
		    	</div>
			    <div class="jifen42">
			      <div style="margin-left:30px;"><button id="jl_del" class="jifen41_btn" onclick="fcDel(this.id)">删除记录</button></div>
			      <!-- 分页   -->
			      <div style="float:right">
			      	  <%
						int pageNo=0,bfNo=0;
						String pageNoStr=request.getParameter("page");
						if(StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)){
							pageNo=1;
							bfNo=1; 
						}else{
							pageNo=Integer.parseInt(pageNoStr);
							bfNo=pageNo-1;
						} 
						String annCount=request.getAttribute("pageCount").toString();
						int P_pageCount=Integer.parseInt(annCount);
					  %>  
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=bfNo %>&options=jfjl"> < </a>
				      
				      <%
						int showPages=6;//显示6页
						if(showPages>=P_pageCount){
							for(int i=0;i<P_pageCount;i++) {%>
								<a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(i+1) %>&options=jfjl"><%=(i+1)%></a>
							<%}
						}else{
							int pindex=0;
							if(pageNo>(showPages/2))
								pindex=pageNo-(showPages/2);
							if((pageNo>P_pageCount-(showPages/2)) && (pageNo<=P_pageCount))
								pindex=P_pageCount-showPages;
							for(int i=pindex;i<showPages+pindex;i++) {%>
								<a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(i+1) %>&options=jfjl"><%=(i+1)%></a>
						<%}} %>
				      
	<!-- 			      <a class="jifen4_page" href="#"> 1 </a> -->
	<!-- 			      <a class="jifen4_page" href="#"> 2 </a> -->
	<!-- 			      <a class="jifen4_page" href="#"> 3 </a> -->
				      <a class="jifen4_page" style="color:#6e6e6e; border:none; background:#fff" href="#"> ... </a> 
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=${pageCount }&options=jfjl"> ${pageCount } </a>
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(pageNo+1)%>&options=jfjl"> > </a>
			      </div> 
			    </div>
			    
		    </form>
		     
     
   </div>
   </td>
	<%}else if("jfgz".equals(param_sta)){ %>
	<!--################################# 积分规则   #################################-->
		<td style="vertical-align: top;">
		     <div class="shezhi_con_r" style="height:auto;padding-bottom:10px;">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
			           <li><a style="color:#666" href="javascript:onChangePage('wdjf');">我的积分</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('cz');">充值</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('zz');">转账</a><br></li>
			           <li><a style="color:#666" href="javascript:onChangePage('dh');">兑换</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfjl');" >积分记录</a><br> </li>
			           <li><a href="javascript:onChangePage('jfgz');"  style="color:#000">积分规则</a><br><img src="imges/jiayuan/jiantou.png"> </li>
		           </ul>
		         </div>
		       </div>
		       <div class="jifen_gz">进行以下事件动作，会得到积分奖励，不过，在一个星期内，您最多得到的奖励次数有限制 </div>
		
		    <div class="jifen4">
		         <div class="jifen_gz1">动作名称</div>
		          <div class="jifen_gz2">周期范围</div> 
		          <div class="jifen_gz4">周期内最多奖励次数</div>
		          <div class="jifen_gz3">经验</div>
		          <div class="jifen_gz3">威望</div>
		          
		          <div class="jifen_gz3">易币</div>
		          <div class="jifen_gz3">魅力</div>
		          <div class="jifen_gz3">贡献</div>
		          <div class="jifen_gz3">功勋</div>
		          <div class="jifen_gz3">金豆</div>
		          <div class="jifen_gz3">现金</div>  
		    </div>
		   <c:forEach items="${JfgzList}" var="item" varStatus="vs">
		   		<c:choose>
		   			<c:when test="${vs.index % 2 == 0}">
		   				<div class="jifen_guize" style=" margin-top:10px">			
					          <div class="jifen_gz1">${item.action}</div>
					          
					          <c:if test="${item.period == 'jfzq_mt'}">
					          	<div class="jifen_gz2">每天</div> 
					          </c:if>
					          <c:if test="${item.period == 'jfzq_ycx'}">
					          	<div class="jifen_gz2">一次性</div> 
					          </c:if>
					          <c:if test="${item.period == 'jfzq_bxzq'}">
					          	<div class="jifen_gz2">不限周期</div> 
					          </c:if>
					          
					          <c:choose>
					          		<c:when test="${item.period_num == 10000}">
					          			<div class="jifen_gz4">不限次数</div>
					          		</c:when>
					          		<c:otherwise>
					          			<div class="jifen_gz4">${item.period_num}</div>
					          		</c:otherwise>
					          </c:choose>
					          
					          <div class="jifen_gz3"><span style="color:#ff6600">${item.jy}</span></div>
					          <div class="jifen_gz3">${item.ww}</div>
					          <div class="jifen_gz3">${item.yb}</div>
					          <div class="jifen_gz3">${item.ml}</div>
					          <div class="jifen_gz3">${item.gx}</div>
					          <div class="jifen_gz3">${item.gxun}</div>
					          <div class="jifen_gz3"><span style="color:#0090ee">${item.jd}</span></div>
					          <div class="jifen_gz3">${item.xj}</div> 
					     </div>
		   			</c:when>
		   			<c:otherwise>
		   				<div class="jifen_guize1">			
					          <div class="jifen_gz1">${item.action}</div>
					          
					          <c:if test="${item.period == 'jfzq_mt'}">
					          		<div class="jifen_gz2">每天</div> 
					          </c:if>
					          <c:if test="${item.period == 'jfzq_ycx'}">
					          		<div class="jifen_gz2">一次性</div> 
					          </c:if>
					          <c:if test="${item.period == 'jfzq_bxzq'}">
					          		<div class="jifen_gz2">不限周期</div> 
					          </c:if>
					          
					          <c:choose>
					          		<c:when test="${item.period_num == 10000}">
					          			<div class="jifen_gz4">不限次数</div>
					          		</c:when>
					          		<c:otherwise>
					          			<div class="jifen_gz4">${item.period_num}</div>
					          		</c:otherwise>
					          </c:choose>
					          
					          <div class="jifen_gz3"><span style="color:#ff6600">${item.jy}</span></div>
					          <div class="jifen_gz3">${item.ww}</div>
					          <div class="jifen_gz3">${item.yb}</div>
					          <div class="jifen_gz3">${item.ml}</div>
					          <div class="jifen_gz3">${item.gx}</div>
					          <div class="jifen_gz3">${item.gxun}</div>
					          <div class="jifen_gz3"><span style="color:#0090ee">${item.jd}</span></div>
					          <div class="jifen_gz3">${item.xj}</div> 
					     </div>
		   			</c:otherwise>
		   		</c:choose>
			   		  
		   </c:forEach>
		    
		   </div>
		   </td>
    <%}else{ %>
<!--################################# 我的积分   #################################-->
	      <td style="vertical-align: top;padding-bottom: 20px;">
		     <div class="shezhi_con_r">
		       <div class="shezhi_con_rtop">
		         <div class="shezhi_con_rtop1" style=" width:100%"> 
		           <ul>
			           <li><a href="javascript:onChangePage('wdjf');" style="color:#000">我的积分</a><br><img src="imges/jiayuan/jiantou.png"> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('cz');">充值</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('zz');">转账</a><br></li>
			           <li><a style="color:#666" href="javascript:onChangePage('dh');">兑换</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfjl');">积分记录</a><br> </li>
			           <li><a style="color:#666" href="javascript:onChangePage('jfgz');">积分规则</a><br> </li>
		           </ul>
		         </div>
		       </div>
		       <div class="shezhi_con_rc">
		          <div class="jifen"> <span>本月已登陆天数 ：<span>20</span> 天，在登录 <span>2 </span>天即可获得积分。</span> </div>
		          <div class="jifen1"> 
		            <div class="jifen1_l"><span>88888</span></div>  
		            <div class="jifen1_r"><span>11111</span></div>      
		          </div>
		          <div class="jifen1">  
		            <div class="jifen1_l1"><span>总积分</span></div>
		             <div class="jifen1_r1"><span>已使用积分</span></div>
		          </div> 
		          <div class="jifen2"><span>易币 : ${myUser.lunbi} 元  </span> <span style="color:#ff6600"> &nbsp;立即充值 >> </span> </div>
		          
		         <div class="shezhi_con_rc">
		         <div class="chongzhi"  style="border-bottom:none">
		              <div class="chongzhi1">
		                <ul>
		                  <li>经验 : ${myUser.experience} 点</li>
		                  <li>贡献 : ${myUser.contrbute} 点</li>
		                  <li>功勋 : ? 点</li>
		                  <li>魅力 : ${myUser.charm} 点</li>
		                </ul>
		              </div>
		              <div class="chongzhi1">
		                <ul>
		                  <li>威望 : ${myUser.prestige} 点</li>
		                  <li style="margin-left:-27px;"><img src="imges/shezhi/jindou.png" style=" vertical-align:sub"> 金豆 : ${myUser.jindou} 枚</li>
		                  <li><img src="imges/shezhi/jinbi.png" style=" vertical-align:sub"> 现金 : ${myUser.cash} 元</li>
		                </ul>
		              </div>
		            <div style="clear:both"></div>
		         </div>
		         
		         <div class="jifen2"><span>积分 : ${myUser.integral} </span> 
		  <span style="color:#d3d3d3; font-size:13px"> { 总积分=发帖数X0.5+精华帖数X5+经验/2+威望X10+易币X2+现金X10+金豆/10+在线时间（小时）X2 }</span> </div>
		       
		       </div>
		     </div>
		    <div style="background:#f1f1f1; width:100%; height:1px"></div>
		    <div class="jifen3"><span>积分记录</span></div>
		    <div class="jifen4">
		      <div class="jifen41">
		         <div class="jifen41_1"><input type="checkbox" style=" float:left; margin-top:10px" onclick="checkAll2(this)"> 操作</div>
		          <div class="jifen41_1">积分变更</div> 
		          <div class="jifen41_2">详情 </div>
		          <div class="jifen41_2">变更时间</div> 
		      </div>
		    </div>
		     <!-- #### 批量删除  ### -->
		    <form id="form_del2" name="form_del2" action="?Integral&options=wdjf" method="post">
		    	<div id="box2" >
				    <c:forEach  items="${JfjlList}" var="item" varStatus="vs">
				    	<c:choose>
				    		<c:when test="${vs.index == 0}">
				    			<div class="jifen41" style=" margin-top:15px">
							          <div class="jifen41_1"><input id="ckb" name="ckb" type="checkbox" style=" float:left; margin-top:10px" value="${item.id}">
							          		<c:if test="${item.addType == 'rwjl'}">任务奖励</c:if>
								         	<c:if test="${item.addType == 'xszt'}">悬赏主题</c:if>
								         	<c:if test="${item.addType == 'zjda'}">最佳答案</c:if>
								         	<c:if test="${item.addType == 'djsjxz'}">道具随机选择</c:if>
								         	<c:if test="${item.addType == 'gmdj'}">购买道具</c:if>
								         	<c:if test="${item.addType == 'zzzc'}">转账转出</c:if>
								         	<c:if test="${item.addType == 'zzjs'}">转账接收</c:if>
								         	<c:if test="${item.addType == 'jfdh'}">积分兑换</c:if>
								         	<c:if test="${item.addType == 'jfdhzc'}">积分兑换支出</c:if>
								         	<c:if test="${item.addType == 'csfj'}">出售附件</c:if>
								         	<c:if test="${item.addType == 'gmfj'}">购买附件</c:if>
								         	<c:if test="${item.addType == 'tzbpf'}">帖子被评分</c:if>
								         	<c:if test="${item.addType == 'tzpf'}">帖子评分</c:if>
								         	<c:if test="${item.addType == 'cszt'}">出售主题</c:if>
								         	<c:if test="${item.addType == 'gmzt'}">购买主题</c:if>
								         	<c:if test="${item.addType == 'gmjf'}">购买积分</c:if>
								         	<c:if test="${item.addType == 'gmtzyhz'}">购买拓展用户组</c:if>
								         	<c:if test="${item.addType == 'jbjc'}">举报奖惩</c:if>
								         	<c:if test="${item.addType == 'cyhd'}">参与活动</c:if>
								         	<c:if test="${item.addType == 'htjl'}">回帖奖励</c:if>
								         	<c:if test="${item.addType == 'htzj'}">回帖中奖</c:if>
								         	<c:if test="${item.addType == 'fhhtjljf'}">返还回帖奖励积分</c:if>
								         	<c:if test="${item.addType == 'kmcz'}">卡密充值</c:if>
								         	<c:if test="${item.addType == 'hshb'}">回收红包</c:if>
								         	<c:if test="${item.addType == 'mxhb'}">埋下红包</c:if>
								         	<c:if test="${item.addType == 'hdhb'}">获得红包</c:if>
								         	<c:if test="${item.addType == 'jjpm'}">竞价排名</c:if>
								         	<c:if test="${item.addType == 'gmxz'}">购买勋章</c:if>
								         	<c:if test="${item.addType == 'htjfjc'}">后台积分奖惩</c:if>
							          </div>
							          <div class="jifen41_1"><span class="jiefen4_orange">${item.integral} </span></div> 
							          <div class="jifen41_2">
							          		<c:if test="${item.integralType == 'jy'}">经验</c:if>
							          		<c:if test="${item.integralType == 'ww'}">威望</c:if>
							          		<c:if test="${item.integralType == 'yb'}">易币</c:if>
							          		<c:if test="${item.integralType == 'ml'}">魅力</c:if>
							          		<c:if test="${item.integralType == 'gx'}">贡献</c:if>
							          		<c:if test="${item.integralType == 'gxun'}">功勋</c:if>
							          		<c:if test="${item.integralType == 'jd'}">金豆</c:if>
							          		<c:if test="${item.integralType == 'xj'}">现金</c:if>
									  </div>
							          <div class="jifen41_2">${item.addDate}</div> 
							    </div>			
				    		</c:when>
				    		<c:otherwise>
				    			<div class="jifen41">
							         <div class="jifen41_1"><input id="ckb" name="ckb" type="checkbox" style=" float:left; margin-top:10px" value="${item.id}">
							         		<c:if test="${item.addType == 'rwjl'}">任务奖励</c:if>
								         	<c:if test="${item.addType == 'xszt'}">悬赏主题</c:if>
								         	<c:if test="${item.addType == 'zjda'}">最佳答案</c:if>
								         	<c:if test="${item.addType == 'djsjxz'}">道具随机选择</c:if>
								         	<c:if test="${item.addType == 'gmdj'}">购买道具</c:if>
								         	<c:if test="${item.addType == 'zzzc'}">转账转出</c:if>
								         	<c:if test="${item.addType == 'zzjs'}">转账接收</c:if>
								         	<c:if test="${item.addType == 'jfdh'}">积分兑换</c:if>
								         	<c:if test="${item.addType == 'jfdhzc'}">积分兑换支出</c:if>
								         	<c:if test="${item.addType == 'csfj'}">出售附件</c:if>
								         	<c:if test="${item.addType == 'gmfj'}">购买附件</c:if>
								         	<c:if test="${item.addType == 'tzbpf'}">帖子被评分</c:if>
								         	<c:if test="${item.addType == 'tzpf'}">帖子评分</c:if>
								         	<c:if test="${item.addType == 'cszt'}">出售主题</c:if>
								         	<c:if test="${item.addType == 'gmzt'}">购买主题</c:if>
								         	<c:if test="${item.addType == 'gmjf'}">购买积分</c:if>
								         	<c:if test="${item.addType == 'gmtzyhz'}">购买拓展用户组</c:if>
								         	<c:if test="${item.addType == 'jbjc'}">举报奖惩</c:if>
								         	<c:if test="${item.addType == 'cyhd'}">参与活动</c:if>
								         	<c:if test="${item.addType == 'htjl'}">回帖奖励</c:if>
								         	<c:if test="${item.addType == 'htzj'}">回帖中奖</c:if>
								         	<c:if test="${item.addType == 'fhhtjljf'}">返还回帖奖励积分</c:if>
								         	<c:if test="${item.addType == 'kmcz'}">卡密充值</c:if>
								         	<c:if test="${item.addType == 'hshb'}">回收红包</c:if>
								         	<c:if test="${item.addType == 'mxhb'}">埋下红包</c:if>
								         	<c:if test="${item.addType == 'hdhb'}">获得红包</c:if>
								         	<c:if test="${item.addType == 'jjpm'}">竞价排名</c:if>
								         	<c:if test="${item.addType == 'gmxz'}">购买勋章</c:if>
								         	<c:if test="${item.addType == 'htjfjc'}">后台积分奖惩</c:if>
							         </div>
							          <div class="jifen41_1"><span class="jiefen4_orange">${item.integral} </span></div> 
							          <div class="jifen41_2">
							          		<c:if test="${item.integralType == 'jy'}">经验</c:if>
							          		<c:if test="${item.integralType == 'ww'}">威望</c:if>
							          		<c:if test="${item.integralType == 'yb'}">易币</c:if>
							          		<c:if test="${item.integralType == 'ml'}">魅力</c:if>
							          		<c:if test="${item.integralType == 'gx'}">贡献</c:if>
							          		<c:if test="${item.integralType == 'gxun'}">功勋</c:if>
							          		<c:if test="${item.integralType == 'jd'}">金豆</c:if>
							          		<c:if test="${item.integralType == 'xj'}">现金</c:if>
							          </div>
							          <div class="jifen41_2">${item.addDate}</div> 
							    </div>	
				    		</c:otherwise>
				    	</c:choose>
				    	    
				    </c:forEach>
			    </div>
		    	<div style=" height:1px; background:#f1f1f1; border:none; width:734px; margin:0 auto; margin-top:20px;"></div> 
		    	
		    
		    	    
			    <div class="jifen42">
			      <div style="margin-left:30px;"><button id="wd_del" class="jifen41_btn" onclick="fcDel(this.id)">删除记录</button></div>
			      <!--########### 分页  ############### -->
			      <div style="float:right">
			      	  <%
						int pageNo=0,bfNo=0;
						String pageNoStr=request.getParameter("page");
						if(StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)){
							pageNo=1;
							bfNo=1; 
						}else{
							pageNo=Integer.parseInt(pageNoStr);
							bfNo=pageNo-1;
						} 
						String annCount=request.getAttribute("pageCount").toString();
						int P_pageCount=Integer.parseInt(annCount);
					  %>  
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=bfNo %>&options=wdjf"> < </a>
				      
				      <%
						int showPages=6;//显示6页
						if(showPages>=P_pageCount){
							for(int i=0;i<P_pageCount;i++) {%>
								<a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(i+1) %>&options=wdjf"><%=(i+1)%></a>
							<%}
						}else{
							int pindex=0;
							if(pageNo>(showPages/2))
								pindex=pageNo-(showPages/2);
							if((pageNo>P_pageCount-(showPages/2)) && (pageNo<=P_pageCount))
								pindex=P_pageCount-showPages;
							for(int i=pindex;i<showPages+pindex;i++) {%>
								<a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(i+1) %>&options=wdjf"><%=(i+1)%></a>
						<%}} %>
				      
	<!-- 			      <a class="jifen4_page" href="#"> 1 </a> -->
	<!-- 			      <a class="jifen4_page" href="#"> 2 </a> -->
	<!-- 			      <a class="jifen4_page" href="#"> 3 </a> -->
				      <a class="jifen4_page" style="color:#6e6e6e; border:none; background:#fff" href="#"> ... </a> 
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=${pageCount }&options=wdjf"> ${pageCount } </a>
				      <a class="jifen4_page" href="userInfoController.do?<%=url_param %>&page=<%=(pageNo+1)%>&options=wdjf"> > </a>
			      </div>
			      
			    </div> 
		     </form>
		   </div>
	  </td>
	<% } %>
	
	
  </tr>
  </tbody>
  </table> 
  <div style="clear:both"></div>
 </div>
<div style="clear:both"></div> 
</div>
</div>



<!--foot -->
<%@include file="foot.jsp"%>

</body>
<!-- <script src = "webpage/jeecg/image/images.js"></script> -->
<script type="text/javascript" src="js/saveuserinfos.js"></script>
</html>
<script> 

//多选
function checkAll1(obj){
    $("#box1 input[type='checkbox']").prop('checked', $(obj).prop('checked'));
}
function checkAll2(obj){
    $("#box2 input[type='checkbox']").prop('checked', $(obj).prop('checked'));
}

//积分记录表单
function fcJfjl(){
	document.getElementById("form_jfjl").submit();	
// 	alert("积分记录表单");
}

//批量删除
function fcDel(x){
	if("jl_del" == x){
		document.getElementById("form_del1").submit();	
	}else{
		document.getElementById("form_del2").submit();	
	}
	
}

//兑换单位转换
function setNum(x)
{
	var t1 = document.getElementById(x).value;
	var t2 = 0;
	var s1 = document.getElementById("slc1").value;
	var s2 = document.getElementById("slc2").value;
// 	alert(s2);
	if(s1 == "lunbi"){
		if(s2 == "cash")	//易币-->现金
			t2 = t1 * 1.0;
		else			//易币-->易币
			t2 = t1 * 1.0;
	}
	if(s1 == "jindou"){
		if(s2 == "cash")	//金豆-->现金
			t2 = t1 * 1.0;
		else			//金豆-->易币
			t2 = t1 * 1.0;
	}
	if(s1 == "cash"){
		if(s2 == "cash")	//现金-->现金
			t2 = t1 * 1.0;
		else			//现金-->易币
			t2 = t1 * 1.0;
	}
   	
// 	alert(t2);
   	document.getElementById("dh2").value = t2;
}
//兑换
function myDh() {
	$.ajax({
		async : false,
		cache : false,
		type : 'POST',
		url : 'userInfoController.do?dHuan',
		dataType:'json',
		data : {
			dh1:$("#dh1").val(),
			dh2:$("#dh2").val(),
			slc1:$("#slc1").val(),
			slc2:$("#slc2").val(),
			dhpw:$("#dhpw").val()			
			},
			success : function(data) {
			if (data.success) {
				alert(data.msg);
					var url='<%=path%>' + "/userInfoController.do?Integral&options=dh";
					location.href = url;
				} else {
					alert(data.msg);
				}
			},

			error : function() {// 请求失败处理函数
				alert("兑换失败！");
			}

		});
	}

//转账
function myZz() {
	$.ajax({
		async : false,
		cache : false,
		type : 'POST',
		url : 'userInfoController.do?zZhang',
		dataType:'json',
		data : {
			yb:$("#yb").val(),
			ru:$("#ru").val(),
			pw:$("#pw").val(),
			zzly:$("#zzly").val()			
			},
			success : function(data) {
			if (data.success) {
				alert(data.msg);
					var url='<%=path%>' + "/userInfoController.do?Integral&options=zz";
					location.href = url;
				} else {
					alert(data.msg);
				}
			},

			error : function() {// 请求失败处理函数
				alert("转账失败！");
			}

		});
	}

function onChangePage(param){
	//将地址替换成新url
	window.location.replace('userInfoController.do?Integral&options='+param);
}
</script>